package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpLinksucai implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 创建人名称
     *
     * @mbg.generated
     */
    private String createName;

    /**
     * 创建日期
     *
     * @mbg.generated
     */
    private Date createDate;

    /**
     * 修改人名称
     *
     * @mbg.generated
     */
    private String updateName;

    /**
     * 修改日期
     *
     * @mbg.generated
     */
    private Date updateDate;

    /**
     * 链接名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 转换标志
     *
     * @mbg.generated
     */
    private Integer transferSign;

    /**
     * 微信账户id
     *
     * @mbg.generated
     */
    private String accountid;

    /**
     * 账号邮编
     *
     * @mbg.generated
     */
    private String postCode;

    /**
     * 分享状态
     *
     * @mbg.generated
     */
    private String shareStatus;

    /**
     * 是否加密（0：不加密，1：加密）
     *
     * @mbg.generated
     */
    private Integer isEncrypt;

    /**
     * 外部链接
     *
     * @mbg.generated
     */
    private String outerLink;

    /**
     * 功能描述
     *
     * @mbg.generated
     */
    private String content;

    /**
     * 内部链接
     *
     * @mbg.generated
     */
    private String innerLink;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTransferSign() {
        return transferSign;
    }

    public void setTransferSign(Integer transferSign) {
        this.transferSign = transferSign;
    }

    public String getAccountid() {
        return accountid;
    }

    public void setAccountid(String accountid) {
        this.accountid = accountid;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getShareStatus() {
        return shareStatus;
    }

    public void setShareStatus(String shareStatus) {
        this.shareStatus = shareStatus;
    }

    public Integer getIsEncrypt() {
        return isEncrypt;
    }

    public void setIsEncrypt(Integer isEncrypt) {
        this.isEncrypt = isEncrypt;
    }

    public String getOuterLink() {
        return outerLink;
    }

    public void setOuterLink(String outerLink) {
        this.outerLink = outerLink;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getInnerLink() {
        return innerLink;
    }

    public void setInnerLink(String innerLink) {
        this.innerLink = innerLink;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", createName=").append(createName);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateName=").append(updateName);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", name=").append(name);
        sb.append(", transferSign=").append(transferSign);
        sb.append(", accountid=").append(accountid);
        sb.append(", postCode=").append(postCode);
        sb.append(", shareStatus=").append(shareStatus);
        sb.append(", isEncrypt=").append(isEncrypt);
        sb.append(", outerLink=").append(outerLink);
        sb.append(", content=").append(content);
        sb.append(", innerLink=").append(innerLink);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpLinksucai other = (WechatMpLinksucai) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCreateName() == null ? other.getCreateName() == null : this.getCreateName().equals(other.getCreateName()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateName() == null ? other.getUpdateName() == null : this.getUpdateName().equals(other.getUpdateName()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTransferSign() == null ? other.getTransferSign() == null : this.getTransferSign().equals(other.getTransferSign()))
            && (this.getAccountid() == null ? other.getAccountid() == null : this.getAccountid().equals(other.getAccountid()))
            && (this.getPostCode() == null ? other.getPostCode() == null : this.getPostCode().equals(other.getPostCode()))
            && (this.getShareStatus() == null ? other.getShareStatus() == null : this.getShareStatus().equals(other.getShareStatus()))
            && (this.getIsEncrypt() == null ? other.getIsEncrypt() == null : this.getIsEncrypt().equals(other.getIsEncrypt()))
            && (this.getOuterLink() == null ? other.getOuterLink() == null : this.getOuterLink().equals(other.getOuterLink()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getInnerLink() == null ? other.getInnerLink() == null : this.getInnerLink().equals(other.getInnerLink()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCreateName() == null) ? 0 : getCreateName().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateName() == null) ? 0 : getUpdateName().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTransferSign() == null) ? 0 : getTransferSign().hashCode());
        result = prime * result + ((getAccountid() == null) ? 0 : getAccountid().hashCode());
        result = prime * result + ((getPostCode() == null) ? 0 : getPostCode().hashCode());
        result = prime * result + ((getShareStatus() == null) ? 0 : getShareStatus().hashCode());
        result = prime * result + ((getIsEncrypt() == null) ? 0 : getIsEncrypt().hashCode());
        result = prime * result + ((getOuterLink() == null) ? 0 : getOuterLink().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getInnerLink() == null) ? 0 : getInnerLink().hashCode());
        return result;
    }
}